/**
 * Created by youngpan on 2017/1/6.
 */
//国内折扣的控制器模块
define(['app'],function(app){
   app.controller('discountCtrl',function($scope,$http){

      $http({
         method:'GET',
         url:'http://192.168.127.222:9090/api/getinlanddiscount'
      }).then(function (data) {
         // console.log(data);
         // console.log(data.data);
         // console.log(data.data.result);
         $scope.result=data.data.result;
      }), function (error) {
         console.log(error);
         console.log('失败');
      }

   })


})